package de.herberlin.server.proxy;

import java.net.Socket;

import de.herberlin.server.common.*;
import de.herberlin.server.common.event.ApplicationEvent;
import de.herberlin.server.common.event.ServerStartEvent;

/**
 * @author hans joachim herbertz
 * created 26.12.2003
 */
public class ProxyServer extends AbstractServer {

	protected int getPort() {
		return Configuration.getPrefs().getInt(
				ConfigConstants.MODE_PROXY + ConfigConstants.SETTING_PORT, 2505);
	}

	/**
	 * @see de.herberlin.server.AbstractServer#process(java.net.Socket)
	 */
	protected void process(Socket client) {
		new ProxyThread(client);

	}

	protected ApplicationEvent getServerStartEvent() {
		return new ServerStartEvent("Proxy Server",new String[]{
				"Time","Request","Response","Content"
		});
	}

}
